package org.geektime.beanfactory;

import org.geektime.entity.Cat;
import org.springframework.beans.factory.FactoryBean;

public class CatBeanFactory implements FactoryBean<Cat> {
  @Override
  public Cat getObject() {
    Cat cat = new Cat();
    cat.setName("factoryCat");
    cat.setColor("red");
    cat.setPersonName("xuanlong");
    return cat;
  }

  @Override
  public Class<?> getObjectType() {
    return Cat.class;
  }
}
